package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

public class Switch1 extends AtomicActor {

   public Switch1(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);
   }

   public void fire() throws IllegalActionException {
      int a = 3;
      
      switch(a) {
          case 1: {
	      System.out.println("1");
	      a = 4;
	  } break;
	  
	  case 2: {
	      System.out.println("2");
	  } break;
	  
	  default: System.out.println("3");
      }
      
      System.out.println("oi");
      a++;

   }
   
}
